﻿namespace Raven
{
    public class FuzzyRule
    {
        private FuzzyTerm _antecedent;
        private FuzzyTerm _consequence;

        public FuzzyRule(FuzzyTerm ant, FuzzyTerm con)
        {
            _antecedent = ant.Clone();
            _consequence = con.Clone();
        }

        public void Calculate()
        {
            _consequence.ORwithDOM(_antecedent.GetDOM());
        }

        public void SetConfidenceOfConsequentToZero()
        {
            _consequence.ClearDOM();
        }
    }
}